{extend name="base_iframe" /}


{block name="body"}
<section class="content">
	<div class="row">
		<div class="col-md-12">

			<div class="">
				<form action="" class="form-inline" role="form" id="search-form">
					<input type="hidden" name="id" value="{$id}">
					<input name="username" value="{$username}" type="text" class="form-control"  placeholder="用户名称">
					<button type="submit" class="btn btn-info">搜索  </button>
					<button type="reset" class="btn btn-default btn-reset">重置  </button>

				</form>
			</div>
			<div class="">
				<form id="set" >
					<input type="hidden" name="id" value="{$id}">

					<table class="table table-border table-bordered table-hover table-bg table-sort">

						<tr class="">
							<th width="10%">
								<input type="checkbox" id="checkbox-1" class="select-all">
								<label for="checkbox-1">全选</label>
							</th>
							<th>帐号</th>
							<th>登录次数</th>
							<th>状态</th>
							<th>最后登录时间</th>
						</tr>

						{volist name="info" id="v"}
						<tr class="">
							<td class="" width="5%"><input type="checkbox" name="user_id[]" class="index-chkbox" value="{$v.id}" {if condition="in_array($v.id,$is_user)"}checked{/if}/></td>
							<td>{$v.username}</td>
							<td>{$v.login_count}</td>
							<td>{$v.status? '<span class="label label-success radius">启用</span>' : '<span class="label label-danger radius">禁用</span>'}</td>
							<td>{$v.last_login_time|date="Y-m-d H:i:s",###}</td>
						</tr>

						{/volist}
					</table>

					<div class="ml-10">
						{$info->render()}
					</div>

				</form>
			</div>

		</div>
	</div>
</section>
{/block}

{block name="script"}
	<script type="text/javascript" src="__AJS__/auth_group/set_user_page.js"></script>
{/block}